package com.itshi.plic;

import com.alibaba.druid.pool.DruidDataSourceFactory;
import com.itshi.until.JDBC;

import javax.sql.DataSource;
import java.io.FileInputStream;
import java.sql.Connection;
import java.util.Properties;

/**
 * @author げっしょく
 * @date 2021/8/20
 */
public class Test6 {
    public static void main(String[] args) throws Exception {
        /*Properties prop = new Properties();
        FileInputStream fis = new FileInputStream("jdbc\\src\\druid.properties");
        prop.load(fis);
        fis.close();
        DataSource dataSource = DruidDataSourceFactory.createDataSource(prop);*/
        //Connection con = dataSource.getConnection();
        Connection con = JDBC.getConnection();
        System.out.println(con);
    }
}
